package org.onvivals.module.ums.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.onvivals.module.ums.entity.UmsUser;
import org.onvivals.module.ums.entity.UmsUserRecharge;

public interface IUmsUserRechargeService extends IService<UmsUserRecharge>{


	/**
	 * 新增vip充值
	 * @param pmsMember
	 * @param price
	 * @param giveIntegral
	 * @param vip
	 * @param time
	 * @return
	 */
    String addVipRecharge(UmsUser pmsMember, String price, String giveIntegral, String vip, int time);



	UmsUserRecharge getInfoByOrderId(String orderId);

	void updateRecharge(UmsUserRecharge userRecharge);

	String addRoleRecharge(UmsUser pmsMember, String price, String name, String role,Long busId);

	/**
	 * 添加充值记录
	 *
	 * @param pmsMember    用户
	 * @param price        充值金额
	 * @param giveIntegral 赠送金额
	 */
	String addRecharge(UmsUser pmsMember, String price, String giveIntegral,String payType);

}
